package com.shop.front.dao.user;

import com.shop.jpa.BaseDao;
import com.shop.domain.user.UserIntegralBill;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserIntegralBillDao extends BaseDao<UserIntegralBill, Long> {

    @Query("from UserIntegralBill where uid = ?2 and linkId = ?1 order by createTime desc")
    List<UserIntegralBill> findAllByLinkIdAndUid(Long storePinkId, Long userId);
}
